package com.ruoyi.web.controller.app;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 陈焕然
 * @version 1.0
 */
@Controller
@RequestMapping("/app")
public class ScoreAppController {

    @RequestMapping("/p/score/scoreLevel/page")
    @ResponseBody
    public String getScore(){
        return "{\"score\":100,\"userLevel\":{\"img\":\"https://img.mall4j.com/2022/01/afbfa17786e341a28463bdfbfc2d2615.jpg\",\"userRights\":[{\"rightsName\":\"送优惠券\",\"serviceType\":null,\"rightsId\":4,\"icon\":\"https://img.mall4j.com/2020/03/fb01d620cf7b41ca84dbc0a062449cf6.png\",\"description\":\"会员等级提升时，赠送优惠券\",\"seq\":null,\"status\":null}],\"level\":1,\"levelType\":0,\"termType\":3,\"levelName\":\"青铜\",\"needGrowth\":0,\"term\":1,\"id\":77,\"needAmount\":null},\"nickName\":\"成\",\"levelType\":0,\"userLevels\":[{\"img\":\"https://img.mall4j.com/2022/01/afbfa17786e341a28463bdfbfc2d2615.jpg\",\"userRights\":[{\"rightsName\":\"送优惠券\",\"serviceType\":null,\"rightsId\":4,\"icon\":\"https://img.mall4j.com/2020/03/fb01d620cf7b41ca84dbc0a062449cf6.png\",\"description\":\"会员等级提升时，赠送优惠券\",\"seq\":null,\"status\":null}],\"level\":1,\"levelType\":0,\"termType\":3,\"levelName\":\"青铜\",\"needGrowth\":0,\"term\":1,\"id\":77,\"needAmount\":null},{\"img\":\"https://img.mall4j.com/2020/07/bc50ee085d2846bab4223fccd5ef0054.jpg\",\"userRights\":[],\"level\":2,\"levelType\":0,\"termType\":3,\"levelName\":\"白银\",\"needGrowth\":100,\"term\":1,\"id\":132,\"needAmount\":null},{\"img\":\"https://img.mall4j.com/2020/07/597dc54a145a4bbd9fe7d56ca1247f31.jpg\",\"userRights\":[],\"level\":3,\"levelType\":0,\"termType\":3,\"levelName\":\"黄金\",\"needGrowth\":200,\"term\":1,\"id\":133,\"needAmount\":null},{\"img\":\"https://img.mall4j.com/2020/07/e5a24e24c8dd4ae9885328dd9b453abf.jpg\",\"userRights\":[],\"level\":4,\"levelType\":0,\"termType\":3,\"levelName\":\"铂金\",\"needGrowth\":500,\"term\":1,\"id\":134,\"needAmount\":null},{\"img\":\"https://img.mall4j.com/2021/04/d2108ce9bce848d5b8a75fb17983ec35.png\",\"userRights\":[],\"level\":5,\"levelType\":0,\"termType\":3,\"levelName\":\"钻石\",\"needGrowth\":1000,\"term\":1,\"id\":135,\"needAmount\":null}],\"nextLevelName\":\"白银\",\"levelName\":\"青铜\",\"needGrowth\":0,\"growth\":0,\"endTime\":null,\"nextGrowth\":100}";
    }


    @RequestMapping("/p/score/scoreInfo")
    @ResponseBody
    public String getScoreInfoe(){
        return "{\"expireScore\":0,\"signInCount\":1,\"levelName\":\"青铜\",\"isSignIn\":0,\"scoreList\":[1,2,3,15,30,40,50],\"score\":100,\"scoreExpireSwitch\":true,\"levelType\":0,\"shopScore\":1.0,\"registerScore\":100,\"growth\":0,\"expireYear\":1,\"isRegister\":1}";
    }

    @RequestMapping("/p/score/prodScorePage")
    @ResponseBody
    public String getProdScorePage(){
        return "{\"total\":1,\"current\":1,\"pages\":1,\"size\":10,\"optimizeCountSql\":true,\"records\":[{\"brief\":\"11212121\",\"imgs\":\"https://img.mall4j.com/2021/12/532f173078f24699ae38315881c451f8.jpg\",\"waterSoldNum\":0,\"skuList\":null,\"scorePrice\":199,\"deliveryModeVO\":null,\"totalStocks\":96,\"shopName\":null,\"prodId\":1211,\"video\":\"\",\"pic\":\"https://img.mall4j.com/2021/12/532f173078f24699ae38315881c451f8.jpg\",\"prodType\":3,\"preSellStatus\":0,\"content\":\"<p>1212121212<img class=\\\"wscnph\\\" src=\\\"https://img.mall4j.com/2021/12/adf6884eff1b46988577f4ff3458dc87.jpg\\\" /><img class=\\\"wscnph\\\" src=\\\"https://img.mall4j.com/2021/12/adf6884eff1b46988577f4ff3458dc87.jpg\\\" /><img class=\\\"wscnph\\\" src=\\\"https://img.mall4j.com/2021/12/ce2f5457ab254ad29002f5de7c7f3296.jpg\\\" /></p>\",\"groupActivityId\":0,\"startDeliveryFee\":null,\"oriPrice\":199.0,\"activityPrice\":null,\"price\":1.0,\"prodName\":\"测试积分商品\",\"liveRoomParams\":null,\"shopId\":1,\"preSellTime\":null,\"categoryId\":null}],\"maxLimit\":null,\"searchCount\":true,\"orders\":[],\"countId\":null}";
    }
}
